package my.dao.impl.rowmapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import my.dao.DaoException;
import my.dao.RowMapper;

public class LongRowMapperImpl implements RowMapper<Long> {
	
	
	private static LongRowMapperImpl instance=new LongRowMapperImpl();
	
	public static LongRowMapperImpl getInstance(){
		return instance;
	}
	
	private LongRowMapperImpl(){}

	public Long currRow2Obj(ResultSet rs) throws SQLException,
			DaoException {
		
		return rs.getLong(1);
	}

}
